package com.weiqiao.api.repository.impl;

import com.weiqiao.api.repository.IStrategyApiRepository;
import com.weiqiao.base.dao.impl.BaseMongoDaoImpl;
import org.bson.conversions.Bson;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("StrategyApiRespository")
public class StrategyApiRespository extends BaseMongoDaoImpl implements IStrategyApiRepository {

    private final static String collectionName = "strategy";

    @Override
    public List<String> strategyList(Bson filter, Bson sort, int pagenum, int pagesize) {
        return super.findFilterSortSkipLimit(collectionName, filter, sort, pagenum, pagesize);
    }
}
